package com.stylefeng.guns.modular.vpn_ads_manage.dao;

import com.stylefeng.guns.modular.vpn_ads_manage.dto.AdsManageDTO;
import com.stylefeng.guns.modular.vpn_ads_manage.entity.AdsEntity;
import com.stylefeng.guns.modular.vpn_ads_manage.entity.AdsItemBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface AdsManageMapper {
    List<AdsItemBO> findAdsList(AdsManageDTO dto);
    AdsItemBO findOneById(@Param("adId") Integer adId);
    void updateAdStatus(@Param("startTime") String startTime,
                        @Param("endTime") String endTime,
                        @Param("adId") Integer adId,
                        @Param("status") Integer status);
    void updateAdsById(AdsEntity dto);
    Long findAdsTotalCount(AdsManageDTO dto);
    List<AdsItemBO> findExportList(AdsManageDTO dto);
}
